package com.chuanzhi.recyclingmalladmin.service.imp;

import com.chuanzhi.recyclingmall.common.result.Result;
import com.chuanzhi.recyclingmalladmin.mapper.AdminMenuMapper;
import com.chuanzhi.recyclingmalladmin.po.AdminMenu;
import com.chuanzhi.recyclingmalladmin.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    AdminMenuMapper adminMenuMapper;

    @Override
    public Result getAdminMenuList() {
        List<AdminMenu> adminMenus = adminMenuMapper.selectList(null);
        return Result.success(adminMenus);
    }
}
